package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllemployess() (error, []models.Employess,int64) {
	err, employess, total := dao.GetAllemployess()
	return err, employess, total
}


func Delemployess(eno string) error {
	err := dao.Delemployess(eno)
	return err
}

func Updateemployess(employess models.Employess) error{
	err:= dao.Updateemployess(employess)
	return err
}

func Addemployess(employess models.Employess) (error) {
	err := dao.Addemployess(employess)
	return err
}
